﻿using Domain.Models;
using System;
using System.Collections.Generic;

namespace Domain.SeedData
{
    public class InitNavigation
    {
        public static IEnumerable<Navigation> InitData()
        {
            var list = new List<Navigation>();
            //概览
            list.Add(new Navigation
            {
                Id = 1,
                Name = "首页",
                Url = "/home",
                SerialNum = 1,
                Icon = "m-home",
                CreateBy = "System",
                CreateTime = DateTime.Now,
                UpdateBy = "System",
                UpdateTime = DateTime.Now,
            });
            //项目管理
            list.Add(new Navigation
            {
                Id = 2,
                Name = "项目管理",
                Url = "/project",
                SerialNum = 2,
                Icon = "m-project-manage",
                CreateBy = "System",
                CreateTime = DateTime.Now,
                UpdateBy = "System",
                UpdateTime = DateTime.Now,
            });
            //相关方管理
            list.Add(new Navigation
            {
                Id = 3,
                Name = "相关方管理",
                Url = "/user",
                SerialNum = 3,
                Icon = "m-user-manage",
                CreateBy = "System",
                CreateTime = DateTime.Now,
                UpdateBy = "System",
                UpdateTime = DateTime.Now,
            });
            //资源管理
            list.Add(new Navigation
            {
                Id = 4,
                Name = "资源管理",
                Url = "/project",
                SerialNum = 4,
                Icon = "m-resources-manage",
                CreateBy = "System",
                CreateTime = DateTime.Now,
                UpdateBy = "System",
                UpdateTime = DateTime.Now,
            });
            //风险管理
            list.Add(new Navigation
            {
                Id = 5,
                Name = "风险管理",
                Url = "/project/add",
                SerialNum = 5,
                Icon = "m-risk-manage",
                CreateBy = "System",
                CreateTime = DateTime.Now,
                UpdateBy = "System",
                UpdateTime = DateTime.Now,
            });
            //日志管理
            list.Add(new Navigation
            {
                Id = 7,
                Name = "日志管理",
                Url = "/admin/role",
                SerialNum = 4,
                Icon = "m-log-manage",
                CreateBy = "System",
                CreateTime = DateTime.Now,
                UpdateBy = "System",
                UpdateTime = DateTime.Now,
            });
            list.Add(new Navigation
            {
                Id = 8,
                Name = "添加项目",
                Url = "/project/add",
                SerialNum = 5,
                ParentId = 2,
                Icon = "m-add-project",
                CreateBy = "System",
                CreateTime = DateTime.Now,
                UpdateBy = "System",
                UpdateTime = DateTime.Now,
            });
            return list;
        }
    }
}
